* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: rgb(0, 0, 0);
  color: white;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar{
  width: 12px;  /* Adjust the scrollbar width */
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;  /* Scrollbar track background */
  border-radius: 10px;  /* Make the scrollbar track rounded */
}

::-webkit-scrollbar-thumb {
  background-color: #888;  /* Scrollbar thumb color */
  border-radius: 10px;  /* Make the scrollbar thumb rounded */
  border: 2px solid #f1f1f1;  /* Add some space between the scrollbar and the track */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;  /* Darken the thumb on hover */
}
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.error-table1 th,
.error-table1 td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    color: #000;
}
.error-table1 td {
  color: white; /* Set text color to black */
}


.error-table1 th {
    background: #f4f4f4;
    font-weight: bold;
}

/* Acknowledge Button Style */
.acknowledge-btn {
  padding: 8px 15px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  background-color: #4caf50; /* Green background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.acknowledge-btn:hover {
  background-color: #45a049; /* Darker green on hover */
}

.acknowledge-btn:active {
  background-color: #3e8e41; /* Even darker green on click */
  transform: scale(0.98); /* Slight shrink effect */
}

/*=============== HEADER & NAV ===============*/
.nav-container {
  padding: 8px 20px;
  margin-inline: 1.5rem;
}

.header {
  position: relative;
  width: 100%;
  background-color: rgba(151, 151, 151, 0.842);
  color: #fff;
  z-index: 10000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: white;
  font-weight: bold;
  transition: color .4s;
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav__toggle, 
.nav__close {
  font-size: 1.25rem;
  color: rgb(241, 241, 241);
  font-weight: bold;
  cursor: pointer;
  transition: color .4s;
}

.nav__close {
  background-color: rgb(255, 255, 255);
  color: #000000;
  padding: 5px 10px;
  border-radius: 50%;
}

:is(.nav__logo, .nav__toggle, .nav__link):hover {
  color: rgb(255, 242, 0);
}
/* Dropdown styling */
.nav__item.dropdown {
  position: relative;
}

.dropdown-toggle{
  cursor: pointer;
}

.nav__item .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 200px;
  z-index: 100;
}

.nav__item .dropdown-menu li {
  margin: 5px 0;
}

.nav__item .dropdown-menu li a {
  font-size: smaller;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  /* display: block; */
}

.nav__item .dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

.nav__item:hover .dropdown-menu {
  display: block;
}

.nav__item span{
  font-weight: 600;
  color: rgb(43, 255, 0);
}

nav a {
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  letter-spacing: 1px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: rgb(255, 242, 0);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  text-align: center;
}

.nav__link {
  color: white;
  transition: color .4s;
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav-container {
    margin-inline: auto;
  }
  .nav {
    column-gap: 3rem;
  }
  .nav__close, 
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    margin-left: auto;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
}

/* For small devices */
@media screen and (max-width: 1023px) {
  .nav-container {
    max-width: 1120px;
    margin-inline: 1.5rem;
  }
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
    width: 100%;
    padding-block: 4.5rem 2rem;
    transition: top .4s;
    z-index: 200;
  }
  /* Add show-menu to bring it into view */
  .nav__menu.show-menu {
    top: 0;
  }
}

/* Footer */
.footer-bottom {
  position: fixed; /* Fix the footer to the bottom */
  bottom: 0; /* Position at the bottom of the viewport */
  left: 0;
  width: 100%; /* Ensure the footer spans the full width */
  display: flex;
  align-items: center;
  justify-content: center; /* Center the content */
  margin-bottom: 5px;
  color: white;
  font-size: 12px;
}
.footer-bottom a{
  color: rgb(255, 242, 0);
}


/* Filter container layout */
/* Filters Container */
.filters-container {
  padding: 20px 40px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Form Group for Individual Input Fields */
.form-group {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

/* Ensure Select2 uses the same width as other inputs */
.select2-container {
  width: 100% !important;
  margin-top: 8px;
}

/* Style the Select2 dropdown input */
.select2-selection {
  background-color: #fff;
  border: 1px solid #ccc;
  font-size: 1rem;
  color: #333;
}

/* Ensure placeholder text is visible */
.select2-selection__placeholder {
  color: #666 !important;
}

/* Dropdown styling for better visibility */
.select2-dropdown {
  background-color: #333;
  color: #fff;
}

.select2-results__option {
  color: #fff;
  background-color: #333;
}

.select2-results__option--highlighted {
  background-color: #555;
  color: #fff;
}

.filter-input {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 5px;
}

.apply-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.apply-btn:hover {
  background-color: #0056b3;
}

/* For medium and small devices */
@media screen and (max-width: 768px) {
  .filters-form {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    min-width: 100%;
  }
}


/* User Creation Modal Styling */
.modals {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  overflow:hidden;
}

.modals-content {
  background-color: #404040;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  bottom: 30px;
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  
}

/* Header Styling */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  flex: 1;
}

.create-user-btn {
  display: block;
  margin-left: auto;
  margin-bottom: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.create-user-btn:hover {
  background-color: #0056b3;
}

/* Scoped Table Wrapper Styling */
.modals .table-wrapper {
  padding: 10px;
  border-radius: 10px;
  overflow:auto;
  height: 400px;
}

.modals .table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.modals .table-wrapper th,
.modals .table-wrapper td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 12px;
  color: #fff;
}

.modals .table-wrapper th {
  background-color: #00b5ad;
  color: white;
  text-align: center;
  font-size: 14px;
}

.modals .table-wrapper tr:nth-child(even) {
  background-color: #404040;
}


.action-buttons .btn {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-edit {
  background-color: #4CAF50;
  color: #fff;
}

.btn-edit:hover {
  background-color: #438646;
}

.btn-delete {
  background-color: #dc3545;
  color: #fff;
}

.btn-delete:hover {
  background-color: #c82333;
}

/* Close Button */
.modals .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  background-color: #ffffff;
  color: #000;
  border-radius: 50%;
  padding: 0px 10px;
}

.modals .close:hover {
  color: #007bff;
}

/* Sub-Modal Styling */
#formModal {
  display: none;
  position: fixed;
  z-index: 10000; /* Higher than the main modal */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex; /* Use Flexbox for centering */
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
}

#formModal .modals-content {
  background-color: #f4f4f4;
  /* padding: 10px; */
  top: -30px;
  border-radius: 10px;
  width: 40%; /* Reduce the width */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative; /* Position relative for internal positioning */
}

/* Modal Header */
#formModal .modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#formModal .modal-title {
  /* font-size: 14px; */
  font-weight: bold;
  color: #000000;
  text-align: center;
}

/* Form Styling */
#formModal .form-group {
  margin-bottom: 7px;
}

#formModal .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 3px;
  color: #000000;
  font-size: 14px;
}

#formModal .form-group input,
#formModal .form-group select {
  width: 100%;
  padding: 10px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#formModal .form-group button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

#formModal .form-group button:hover {
  background-color: #218838;
}

/* Close Button Styling */
#formModal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

#formModal .close:hover {
  color: #007bff;
}


/* Main content area */
.main-content {
  display: flex;
  height: calc(100vh - 60px); /* Adjust height to fill the remaining viewport space */
  transition: all 0.3s ease;
  /* overflow-y: auto;
  overflow-x: hidden;    */
}

/* Container for the map */

.m-container {
  flex: 1; /* Takes 1 part of the total 2 */
  height: 100%; 
  padding: 8px 4px 8px 8px; 
  position: relative; 
  transition: flex 0.3s ease;
}

/* Map styling */
.map {
  height: 100%; /* Ensures the map fills the container */
  border-radius: 8px;
  position: relative; /* Ensure layering */
  overflow: hidden;
}




/* Ensure maximize button does not show name tooltip */
.maximize-button::after {
  content: none; /* Disable tooltip for this button */
}

/* Maximized layout (when a section is maximized) */
.maximized {
  flex: 10; /* Expand to fill available space */
  overflow-y: auto; /* Allow scrolling when maximized */
  height: 100vh; /* Take up full height */
}



/* Right section: Dashboard and Chart */
.right-section {
  flex: 1; /* Takes 1 part of the total 2 */
  display: flex;
  flex-direction: column; 
  padding: 8px 8px 8px 4px;
  width: 60%;
  transition: flex 0.3s ease;
  
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Top and Bottom sections*/

.top {
  flex: 1;
  position: relative;
  margin-bottom: 8px;
  background-color: rgb(241, 241, 241);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  overflow-y:scroll; 
  transition: all 0.3s ease;
}

.header-section {
  position: sticky; /* Make the header sticky */
  top: 0; /* Position it at the top of the container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(241, 241, 241); /* Same background color as .top */
  padding: 5px;
  z-index: 10; /* Ensure it stays above the table */
  transition: height 0.3s ease, background-color 0.3s ease;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-bar {
  padding: 5px;
  margin-right: 5px;
}

.toggle-icon {
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.top p {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}


#top-title {
  font-size: 18px;
  font-weight: bold;
  margin-left: 40%;
}

.search-bar {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.table-container {
  width: 100%;
  padding: 5px;
  overflow-x: auto;
  /* cursor: grab; */
  user-select: none;
}

.table-container:active {
  cursor: grabbing;
}

.table-container.dragging {
  cursor: grabbing;
}

.top table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  /* margin-bottom: 20px; */
}

.top th, td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}

.top thead th {
  background-color: #00b5ad;
  color: white;
}

.top tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

tbody td {
  color: #333;
}

.top tbody td:nth-child(8),
.top tbody td:nth-child(9) {
  background-color: #ffecec; /* Maintenance background */
  color: #ff0000;
}

.top tbody td:nth-child(10),
.top tbody td:nth-child(11) {
  background-color: #ecfff0; /* Working background */
  color: #008000;
}

/* Adjust layout for small and medium devices */
@media screen and (max-width: 1023px) {
  /* Stack map and right sections vertically */
  .main-content {
    flex-direction: column;
  }

  .m-container, 
  .right-section {
    width: 100%;
    padding: 5px;
  }

  .top {
    width: 100%;
    max-height: 200px; /* Reduce height for smaller screens */
  }

  .bottom {
    padding: 10px;
  }

  .top table {
    width: 100%;
    font-size: 9px; /* Adjust font size */
  }

  .top th, td {
    padding: 6px;
  }
  
}

/* For very small devices (like phones) */
@media screen and (max-width: 768px) {
  /* Further adjustments to the layout and table */
  .top {
    max-height: 250px; /* Limit height for small devices */
  }

  .top .table-container {
    font-size: 8px; /* Reduce font size further */
  }

  .top table {
    font-size: 8px; /* Adjust font size */
  }

  .top th, td {
    padding: 5px;
  }

  /* Reduce bottom section padding */
  .bottom {
    padding: 5px;
  }

}

.bottom{
  flex: 1;
  background-color: rgb(60, 60, 60);
  backdrop-filter: blur(10px);
  padding: 5px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bottom p{
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}



/* For very large devices */
@media screen and (max-width: 1440px) {
  .main-content {
    flex-direction: row;
    justify-content: space-between; /* Space out sections */
  }

  .m-container, 
  .right-section {
    width: 60%; 
    /* padding: 10px; */
  }

  .top, .bottom {
    max-height: 500px; /* Increase height for larger screens */
    width: 100%; /* Expand width */
    /* padding: 10px; */
  }

  .top p, .bottom p {
    font-size: 18px; /* Increase font size for readability */
  }

  .top table {
    font-size: 12px; /* Increase font size */
  }

  .top th, td {
    padding: 10px; /* Increase padding */
  }
}
 

.content {
  display: none;
  height: 95%;
  overflow: auto; /* Hide all content sections initially */
}

.content.active {
  display: block; /* Show the active content */
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 6%; /* Adjust the width as needed */
  background-color: #fff; /* Background color of the sidebar */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  z-index: 1000; /* Make sure it stays on top */
}

.sidebar-item {
  margin: 10px 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-radius: 5px; /* Adds rounded corners */
  transition: background-color 0.3s ease;
}

.sidebar-item i {
  font-size: 18px;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-item:hover i {
  transform: scale(1.2); /* Slight zoom effect on hover */
}

.sidebar-item::after {
  content: attr(data-name); /* Show name when hovered */
  position: absolute;
  right: 150%; /* Position it to the left of the sidebar item */
  top: 50%; /* Center vertically relative to the item */
  transform: translateY(-50%); /* Adjust to truly center it */
  background-color: #ff5900;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  font-size: 14px;
  pointer-events: none; /* Prevents the tooltip from blocking hover */
}

.sidebar-item:hover::after {
  opacity: 1;
}

/* Active sidebar item */
.sidebar-item.active {
  background-color: #007bff; /* Active background color */
  color: #ffffff; /* Text color for active item */
  width: 70%; /* Full width for active background */
  border-radius: 5px; /* Remove border-radius for full width */
  display: flex;
  align-items: center;
  padding: 10px 15px;
  position: relative;
}

/* Icon color and alignment when active */
.sidebar-item.active i {
  color: #ffffff; /* Icon color in active state */
  margin-right: auto; /* Push icon to the left */
}

/* Arrow for active item */
.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: -10px; /* Adjust to position the arrow */
  top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #007bff; /* Color matching active background */
}


.sidebar .dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  right: 100%; /* Align to the right of the sidebar item */
  bottom: 0;
  background-color: #020202;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 10px 15px;
  border-radius: 4px;
  overflow: hidden;
  z-index: 10;
}

.sidebar .dropdown-item {
  padding: 2px 8px;
  white-space: nowrap;
  cursor: pointer;
}

.sidebar .dropdown-item:hover {
  background-color: #ff5900;
  color:white;
  border-radius: 4px;
  transition: all 0.3s ease; 
}

/* Show dropdown menu on hover or click */
.sidebar-item[data-name="Reports"]:hover .dropdown-menu,
.sidebar-item[data-name="Reports"].active .dropdown-menu {
  display: block;
}



.c-container {
  display: flex;
  flex-direction: row;
  padding-left: 70px; /* Adjust for sidebar width */
}

/* Responsive design for the sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 50px;
  }
  .c-container {
    padding-left: 60px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 40px;
  }
  .c-container {
    padding-left: 50px;
  }
}

.chart-container {
  position: relative;
  height: 90%;
  width: 99%;
  background-color: rgb(255, 255, 255);
  max-height: auto;
  border-radius: 5px;
  margin: 0px 0px 10px 5px;  
}

canvas {
  width: 100% !important;
  height: 100% !important;
  padding: 10px 10px 25px 10px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin: 0 5px 0 5px;
  color: #000;
}

.date-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px; 
}
.date-filter input[type="date"] {
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

.date-filter button {
  font-family: 'Poppins', sans-serif;
  padding: 3px 8px;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.date-filter button:hover {
  background-color: #0056b3;
}


/*Test DIO*/
/* General Table Styles */
.three-column-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #fff;
  margin-bottom: 20px
}

/* Ensure 3 equal columns */
.three-column-table td {
  padding: 5px;
  border: 1px solid #444;
  vertical-align: middle;
  text-align: left;
  width: 33.33%; /* Ensure 3 columns with equal width */
  box-sizing: border-box; /* Prevent overflow */
}

/* Styling for rows */
.input-row, .output-row {
  transition: background-color 0.3s ease;
}

.input-row:nth-child(even), .output-row:nth-child(even) {
  background-color: #333; /* Dark background for even rows */
}

.input-row:nth-child(odd), .output-row:nth-child(odd) {
  background-color: #444; /* Lighter background for odd rows */
}

.input-row:hover, .output-row:hover {
  background-color: #007bff; /* Highlight row on hover */
}

/* Styling for LED and DIO */
.input-cell, .output-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}
.led-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px; /* Space between LED and DIO name */
}

.led-green {
  background-color: #00ff3c; /* Green for active state */
}

.led-grey {
  background-color: #6c757d; /* Grey for inactive state */
}

.input-dio-name, .output-dio-name {
  flex: 1;
}

/* Fix table cell layout */
.three-column-table tbody {
  display: block;
}

.three-column-table tr {
  display: flex;
  width: 100%;
  justify-content: space-between; /* Ensure cells align horizontally */
}

.three-column-table td {
  display: inline-block; /* Ensure they align in a row */
  width: 32%; /* Ensures 3 equal-sized columns */
  padding: 5px;
  box-sizing: border-box; /* Prevent overflow */
}

/* Tab container */
#dioTabbedContainer {

  color: #fff;
  /* background-color: #202020;  */
  padding: 10px;
  border-radius: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-button {
  flex: 1;
  padding: 10px;
  background-color: #292929;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.tab-button.active {
  background-color: #007bff; /* Active tab color */
}

.tab-button:hover {
  background-color: #0056b3; /* Hover color */
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Style for each input and output section */
.inputContainer, .outputContainer {
  margin-top: 20px;
}

.inputCell, .outputCell {
  display: flex;
  align-items: center;
}

.input-dio-name, .output-dio-name {
  font-size: 12px;
  color: #fff;
}


/* Table styling */
.three-column-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #fff;
}

.three-column-table td {
  padding: 5px;
  border: 1px solid #444;
  vertical-align: middle;
  text-align: left;
  width: 33.33%; /* Ensure 3 columns with equal width */
  box-sizing: border-box; /* Prevent overflow */
}

/* Styling for rows */
.input-row, .output-row {
  transition: background-color 0.3s ease;
}

.input-row:nth-child(even), .output-row:nth-child(even) {
  background-color: #333; /* Dark background for even rows */
}

.input-row:nth-child(odd), .output-row:nth-child(odd) {
  background-color: #444; /* Lighter background for odd rows */
}

.input-row:hover, .output-row:hover {
  background-color: #007bff; /* Highlight row on hover */
}


/* Controls */

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
}

.main-head {
  display: flex;
  justify-content: space-between; /* This distributes space between elements */
  align-items: center;
  padding: 10px 5px;
  height: 5%;
  font-size: 13px;
  margin-bottom: 5px;
}

.mainhead-text, .system-time{
  font-weight: bold;
  /* margin-right: 5px; */
  color: rgb(255, 255, 255);
}
.status-indicator {
  /* display: flex; */
  align-items: center;
  flex-grow: 1;
}

.status-indicator .status-text {
  font-weight: bold;
  margin-right: 10px;
  color: #b3ff00;
  font-size: 12px;
}

.status-working {
  display: flex;
  align-items: center;
}

.main-working {
  color:rgb(0, 255, 34) ;
  font-weight: 600;
  letter-spacing: 2px;
}


/* Status Circle */
#status-circle {
  width: 12px;        /* Size of the circle */
  height: 12px;       /* Size of the circle */
  border-radius: 50%; /* Round shape */
  margin-right: 8px;  /* Space next to the circle */
  display: inline-block;
  background-color: #bbb; /* Default color (grey) for inactive */
}

#status-circle1 {
  width: 12px;        /* Size of the circle */
  height: 12px;       /* Size of the circle */
  border-radius: 50%; /* Round shape */
  margin-right: 8px;  /* Space next to the circle */
  display: inline-block;
  background-color: #bbb; /* Default color (grey) for inactive */
}

#status{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.errorreported{
  color: rgb(255, 247, 0);
  font-weight: 700;
  font-size: 12px;
  padding-left: 10px;
}

.errorvalue{

  font-weight: 700;
  font-size: 12px;
  padding-left: 10px;

}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Spacing between button groups */
  margin: 10px;
}

.button-group .action-btn {
  flex: 1 1 calc(33.33% - 10px); /* Make each button take 1/3 of the container minus the gap */
  padding: 8px 12px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: smaller;
  border-radius: 5px;
  margin: 5px 0; /* Add some vertical space between rows */
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding and borders are included in the width calculation */
}

.button-group .action-btn:hover {
  background-color: #0056b3;
}


/* Responsive Styles */
@media (max-width: 768px) {
  .button-group {
      flex-direction: column;
      align-items: flex-end;
  }
}

.status-working .runs {
  color: rgb(21, 255, 0); /* Green */
}

.status-working .stopped {
  color: red; /* Red */
}


/* Main Content */

.main-contents {
  flex-grow: 1;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 92%;
  position: absolute;
  height: 100%; 
  /* background-color: rgb(0, 0, 0); */
  overflow: hidden;
  box-sizing: border-box;


}

.system-data{
  padding: 2px 10px 10px 10px;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 5px;
  font-size: smaller;
  color: #fff;
}

/* System Data Styling */
.system-data {
  width: 100%; 
}
/* Table Styling for 6 Columns */
.system-data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px; /* Make the font size smaller */
}

.system-data table th {
  padding: 8px;
  border: none; /* Remove borders */
  color: #ffe600;
  text-align: start;
}
.system-data table td {
  padding: 8px;
  border: none; /* Remove borders */
  color: #fff;
  text-align: start;
}

.system-data tbody tr:nth-child(even) {
  color: #fff;
}

.system-data tbody td:nth-child(even) {
  color: #00ffb7;
}

.highlight-red {
  color: red; /* Red for highlighted cells */
}


/* Container for the cards */
.dropdown-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  margin: 10px 0px;
}

.dropdown-item {
  width: 100%;
}

.dropdown-card {
  background-color: #000000;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin: 5px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-card:hover {
  background-color: #000000;
}

.dropdown-name {
  font-size: 12px;
  color: rgb(255, 174, 0);
}

.dropdown-plus {
  font-size: 16px;
  font-weight: bold;
}

/* Dropdown content (initially hidden) */
.dropdown-content {
  display: none;
  padding: 10px;
  /* background-color: #4b4b4b; */
  font-size: 12px;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content table {
  width: 100%;
  border-collapse: collapse;
}
.dropdown-content tbody tr:nth-child(even){
  background-color: #4b4b4b;
  
}
.dropdown-content td {
  padding: 8px;
  font-size: 12px;
  
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dropdown-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dropdown-container {
    grid-template-columns: 1fr;
  }
}

/* Display I/O */
.tower-dashboard {
  padding: 10px;
  margin-bottom: 10px;
}

.tower-header {
  display: flex;
  /* justify-content: space-around; */
  gap: 10px;
}

.option-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease; 
}

.option-button.active {
  background-color: #ffffff; 
  color: #000000; 
  transform: scale(1.12); 
}


.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* Three equal columns */
  /* gap: 2px; */
}

.data-column {
  padding: 3px;
}

.data-title {
  font-weight: bold;
  margin-bottom: 5px;
  color:#ffee00;
  text-align: center;
}

.data-table {
  background-color: #f0f0f0;
  width: 100%;
  border-collapse: collapse;
  border-color: #000;
  margin-bottom: 6px;
}

.data-table td {
  padding: 2px;
  vertical-align: middle;
}

.color-indicator {
  width: 25px;
  height: 15px;
  background-color: #939393; /* Default color, update as needed */
  /* border-radius: 50%; */
}

.data-name {
  font-size: 11px;
  text-align: left; 
}


/* Report Table */

.date-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0px 10px 20px 10px;
}
.date-filter-container label{
  font-size: 12px;
  font-weight: bold;
}
.date-input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
}
.report-type-dropdown {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.select-button {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.select-button:hover {
  background-color: #0056b3;
}

.report-table-container {
  width: 100%;
  padding: 5px;
  overflow-x: auto;
  margin-bottom: 5%;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.report-table th,
.report-table td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
  color: #000;
}

.report-table th {
  background-color: #00b5ad;
  color: white;
  font-size: 12px;
}

.report-table tbody{
  background-color: #f9f9f9;
}

/* Container for all error pop-ups */
.error-popups {
  position: fixed;
  bottom: 30px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between each error message */
  z-index: 10000;
}

/* Styling for each individual error notification */
.error-popup {
  position: relative;
  background-color: rgba(255, 0, 0, 0.7); /* Semi-transparent red background */
  backdrop-filter: blur(5px); /* Blur effect for a frosted glass look */
  color: white;
  padding: 15px 15px 10px; /* Extra padding at the top to accommodate the icon */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for a raised effect */
  animation: fadeIn 0.5s; /* Fade-in animation */
  opacity: 0.95;
  text-align: center; /* Center-align the content */
  z-index: 10000;
}

/* Container for the icon, placed at the top center */
.icon-container {
  position: absolute;
  top: -12px; /* Adjust based on your design preference */
  left: 50%;
  transform: translateX(-50%);
  background-color: white; /* White background for the icon container */
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Shadow to make the icon stand out */
}


/* Table styling inside the error notification */
.error-table {
  width: 100%; /* Full width table */
  border-collapse: collapse; /* Remove gaps between table cells */
}

.error-table td {
  border: none; /* No border for table cells */
  padding: 2px;
  font-size: 12px; /* Smaller text size */
  text-align: left;
  color: #fff;
}

.floating-icon {
  position: fixed;
  bottom: 6%;
  left: 2%;
  margin-bottom: 10px;
  cursor: pointer;
  z-index: 1000;
}


.error-list-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.error-list-content {
  background: #393939;
  padding: 20px;
  border-radius: 8px;
  width: auto;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  color: black;
  box-sizing: border-box; 
}

.error-list-content h2 {
  margin-bottom: 1%;
  text-align: center;
  color: white;

}

.error-list-content ul {
  list-style: none;
  padding: 0;
}

.error-list-content li {
  margin-bottom: 15px;
}

.close-btn {
  position: absolute;
  top: 2%;
  right: 2%;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
}

.close-btn:hover {
  color: #f00;
}



/* Animation for error pop-ups */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* Start slightly lower */
  }
  to {
    opacity: 0.95;
    transform: translateY(0); /* End at the original position */
  }
}



#tablesContainer {
  margin: 20px 10px;
}

.tables-container {
  width: calc(25% - 20px); /* 4 tables per row */
}

.tables-container table {
  background-color: #f0f0f0;
  width: 100%;
  border-collapse: collapse;
  border-color: #000;
  margin-bottom: 3px;
  font-size: 10px;
}

.tables-container th {
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 3px;
}

.tables-container td {
  text-align: left;
  padding: 2px;
}


.color-box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}

.color-grey {
  background-color: grey;
}

.color-green {
  background-color: green;
}


.left {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease; 
}

.right {
  width: 60%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.top-right, .bottom-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  height: 93%;
  margin-bottom: 20px;
}

.bottom-right {
  background-color: #565656;
  color: #fff;
}

.hidden {
  display: none !important;
}

.map-button {
  position: absolute;
  top: 8%;
  left: 1%;
  background-color: #264653;
  color: white;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10000;
  display: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.map-button.visible {
  display: block;
}

.icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  color: white;
  cursor: pointer;
}

.icon:hover {
  color: #ffddd2;
}

/* Maximized State */
.maximized {
  width: 100%;
  height: 90%;
  position: absolute;
  top: 6%;
  left: 0;
  z-index: 10000;
  transition: all 0.3s ease;
}

.maximized-within-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  transition: all 0.3s ease;
}

#minimize-left{
  font-size: 20px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 5px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Minimize icon styling */
.minimize-icons {
  position: absolute;
  top: 10px;
  font-size: 20px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.minimize-icons:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.1); /* Slightly enlarge on hover */
}

.maximize-button {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.maximize-button i {
  font-size: 18px;
  color: rgb(0, 0, 0); /* Icon color */
  font-weight: 600;
}

.half-screen {
  width: 49.5%;
  height: 90%;
  position: fixed;
  transition: all 0.3s ease;
  margin: .3%;
}

.left-half {
  left: 0;
  top: 6%;
}

.right-half {
  right: 0;
  top: 6%;
}

.visible {
  display: block;
  transition: opacity 0.3s ease;
  opacity: 1;
}